﻿using GalaSoft.MvvmLight.Messaging;
using PremisPublisher.Messages;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PremisPublisher.ViewModel
{

    /* ViewModel 容器 */

    public class ViewModelLocator
    {
        private static UpgradeMainViewModel _main_upgrade;
        private static CryptDirectoryFilesViewModel _crypt;
        private static SQLContentEditor _editor;
        private static LogViewModel _log;
        private static PublisherMainViewModel _main_publisher;
        private static StringEncryptViewModel _stringEncryptWin;
       
        public ViewModelLocator()
        {
            _main_upgrade = new UpgradeMainViewModel();
            _crypt = new CryptDirectoryFilesViewModel();
            _editor = new SQLContentEditor();
            _log = new LogViewModel();
            _main_publisher = new PublisherMainViewModel();
            _stringEncryptWin = new StringEncryptViewModel();

        }
        
        public LogViewModel Log { get { return _log; } }
        public UpgradeMainViewModel MainUpgrade { get { return _main_upgrade; } }
        public CryptDirectoryFilesViewModel Crypt { get { return _crypt; } }
        public SQLContentEditor Editor { get { return _editor; } }
        public PublisherMainViewModel MainPublisher { get { return _main_publisher; } }
        public StringEncryptViewModel StringEncryptWin { get { return _stringEncryptWin; } }
    }
}
